<%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/3/8
  Time: 15:10
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
<h1>1页面</h1>
<%--使用域对象存储数据--%>
<%
	//往四个域对象中保存数据
	pageContext.setAttribute("name","pageContext");
    request.setAttribute("name","request");
    session.setAttribute("name","session");
    application.setAttribute("name","application");
%>

pageContext是否有值：<%=pageContext.getAttribute("name")%> <br>
request是否有值：<%=request.getAttribute("name")%> <br>
session是否有值：<%=session.getAttribute("name")%> <br>
application是否有值：<%=application.getAttribute("name")%> <br>

<%
	request.getRequestDispatcher("/hello04.jsp").forward(request,response);
%>


</body>
</html>
